package org.wukongcrm.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.wukongcrm.mapper.CustomerMapper;
import org.wukongcrm.domain.entity.Customer;
import org.wukongcrm.service.CustomerService;
@Service
public class CustomerServiceImpl extends ServiceImpl<CustomerMapper, Customer> implements CustomerService{

    @Override
    public List<Customer> selectCustomer (Page<Customer> page, String conditions) {
        return baseMapper.selectCustomer(page, conditions);
    }

    @Override
    public int updateOwnerUser (Integer ownerUserId, Integer customerNo) {
        return baseMapper.updateOwnerUser(ownerUserId, customerNo);
    }

    @Override
    public int updateDealStatus (Integer dealStatus, Integer customerNo) {
        return baseMapper.updateDealStatus(dealStatus, customerNo);
    }
}
